package com.flyme.common.security.filter;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Created by xinxingegeya on 2017/5/18.
 */
public class AnonymousFilter extends AbstractAccessControlFilter {
    @Override
    protected boolean isAccessAllowed(HttpServletRequest request, HttpServletResponse response) throws Exception {
        // Always return true since we allow access to anyone
        return true;
    }

    @Override
    protected boolean onAccessDenied(HttpServletRequest request, HttpServletResponse response) throws Exception {
        // Always return true since we allow access to anyone
        return true;
    }
}
